package com.ht.temp.mapper;

import com.ht.temp.entity.Equipment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-19
 */
@Repository
public interface EquipmentMapper extends BaseMapper<Equipment> {

    int deleteByPrimaryKey(Integer equipmentId);//删除根据主键id

    int insertSelective(Equipment record);//插入设备

    List<Equipment> selectByEquipment(Equipment record);//查询所有设备

    Equipment selectByPrimaryKey(Integer equipmentId);//根据id查询某台设备

    Integer updateByEquipment(Equipment record);

    Integer updateEquipmentState(@Param("state") Integer state,@Param("id") Integer id);
}
